<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta charset="utf-8" />
	<title></title>
	<link href="../css/bootstrap.min.css" rel="stylesheet">
	<link href="../css/bootstrap-select.css" rel="stylesheet">
	<link href="../css/font-awesome.min.css" rel="stylesheet">
	<link href="../css/JyyCommon.css" rel="stylesheet">
	<link href="../css/JyyTable.css" rel="stylesheet">
	<link href="../css/JyyTree.css" rel="stylesheet">
	<link href="../css/JyyMsgBox.css" rel="stylesheet">
	<script type="text/javascript" src="../js/jquery-3.2.1.js"></script>
	<script type="text/javascript" src="../js/jquery.form.min.js"></script> 
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../js/bootstrap-paginator.min.js"></script>
	<script type="text/javascript" src="../js/bootstrap-select.js"></script>
	<script type="text/javascript" src="../js/JyyCommon.js"></script>
	<script type="text/javascript" src="../js/JyyTable.js"></script>
	<script type="text/javascript" src="../js/JyyTree.js"></script>
	<script type="text/javascript" src="../js/JyyMsgBox.js"></script>
	<script type="text/javascript" src="../js/JyyLoading.js"></script>
	<script type="text/javascript" src="../../utils/CommonUtil.js"></script>
	<style>
	.heidenbt{
		display: none
	}
</style>
	<script type="text/javascript">
		var tree = null;
		var table = null;
		var scheme = null;
		var treeCode = null;
		var alltreedata = '';
		$(function(){
			//加载树组件
			var sys = 1;
			var planId = getQueryString("projectId")||'88888888888';
			// var planId = '2531';
			var modelId = getQueryString("modelId")||'88888888888';
			invoke_sys('Sysconfig/getMenutree', {sys:sys,pagestype:modelId,planId:planId}, function(data){
				alltreedata = data.respData.jsonOutput;
				getTreeDatas();	
		    });
		})
		
		function onTreeEvent(event){
			console.log('event:',event)
			console.log("onTreeEvent");
			var projectId_ =  getQueryString("projectId")||'88888888888';
			var arr = [4000001,4000002,4000003,4000004,4000005,4000006,1004101,1004102,1004103,1004104,1004105,1004106,1004107,1004108,1004201,10043,10044,10045,10046,
				  1004701,1004702,1004801,1004901,1004902,10041002,100411,10041201,10041202,10041203,10041204,10041205,10041206,10041301,10041302,
				  10041303,10041304,10041305,10041306,1001,1002,1003,10010,2000011,1010,2000012,2000021,3000021,3000022,3000023,3000024,3000025,2000023,3000026,3000027,
				  2000024,3000028,2000025,120101,120201,120202,120301,120401,120501,120503,120601,120602,121101,121102,70010,1101,1102,120101,120102,120201,120202,120203,
				  120204,120301,120302,120303,120304,120305,120401,120402,120403,120404,120405,120501,120502,120503,120601,120602,120603,120701,120801,120901,121001,121101,121102,11];
			/* if(event.name == "onclick"){
				var data = event.node.data;
				var code = data.code;
				// dactive文件路径
		        var url = 'http://123.57.216.230:8081/'+event.node.data.url; 
				if(arr.includes(parseInt(code))) {
					// 系统文件路径
 					url = 'http://123.57.216.230:80/'+data.url;
					url = 'http://localhost:8090/'+data.url;
				}
				if(!data.url){
					return;
				}else{
					if(code == '20101' || code == '20102'){
						url = 'http://cloudgopt.com/'+event.node.data.url+'&projectId='+projectId_;
						//url = 'http://123.57.216.230:8081/'+event.node.data.url+'&projectId='+projectId_;
					}
					JyyLoading.start();
					$('#sampleIframe').attr('src',url);
					//$('#sampleIframe').attr('src', $('#sampleIframe').attr('src'));
					$("#iframe").css("display","block");
					$('#sampleIframe').on("load",function() { 
						JyyLoading.end();
					}); 

				}
			} */
			if(event.name == "onclick"){
				var data = event.node.data;
				var code = data.code;
				// dactive启动路径
		        var url = '/'+data.url;
				if(!data.url){
					return;
				}else{
					JyyLoading.start();
					$('#sampleIframe').attr('src',url);
					//$('#sampleIframe').attr('src', $('#sampleIframe').attr('src'));
					$("#iframe").css("display","block");
					$('#sampleIframe').on("load",function() { 
						JyyLoading.end();
					}); 

				}
			}
		}
		function getQueryString (name){
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			return r ? unescape(r[2]) : null;
		}
		function getTreeDatas(){
			var planId =  this.getQueryString("projectId")||'88888888888';
			var modelId =  this.getQueryString("modelId")||'88888888888';
			var treeData = '';
			if(modelId=='7'){
				treeData = alltreedata;
				tree = RxTree.init("tree", treeData, {listMode:"tree",draggable:true,checkType:"single", drillType:"1"}, 
						{width:"200px", bottom:"0px", top:"0px", border:"none",borderRight: "1px solid #e0e0e0"}, onTreeEvent);
				tree.expandAll();
        	}else if(modelId=='2'){
        		treeData = alltreedata;
				tree = RxTree.init("tree", treeData, {listMode:"tree",draggable:true,checkType:"single", drillType:"1"}, 
						{width:"200px", bottom:"0px", top:"0px", border:"none",borderRight: "1px solid #e0e0e0"}, onTreeEvent);
				tree.expandAll();
				tree.checkNode("2001", true);
        	} else if(modelId=='0') {
        		treeData = alltreedata;
				tree = RxTree.init("tree", treeData, {listMode:"tree",draggable:true,checkType:"single", drillType:"1"}, 
						{width:"200px", bottom:"0px", top:"0px", border:"none",borderRight: "1px solid #e0e0e0"}, onTreeEvent);
				tree.checkNode("11", true);
				//tree.expandAll();
        	}else{
        		$.ajax({
		            type:"POST",
		            url:"../pv/page/pageInfo/menus",
		            data:{sysType:modelId,planId:planId},
		      //      contentType:"application/json", 
		            success:function(data){
		            	var sts=eval("("+data+")");
		            	    treeData = sts;
		    			tree = RxTree.init("tree", treeData, {listMode:"tree",draggable:true,checkType:"single", drillType:"1"}, 
		    					{width:"200px", bottom:"0px", top:"0px", border:"none",borderRight: "1px solid #e0e0e0"}, onTreeEvent);
		    			tree.expandAll();
		    			//tree.checkNode("102", true);
		            }
		        });
        	}
			
			 
		};
		function getTreeData11(planId){
			return [{
				"code": "2",
				"name": "源网储一体化规划",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "10010",
					"name": "总体概览",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "goptcloud/pages/general.html?dataCode=10010&projectId="+planId
				}, {
					"code": "1010",
					"name": "规划结果",
					"draggable": false,
					"level": "2",
					"items": [{
							"code": "2000011",
							"name": "机组",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url":  "goptcloud/pages/unitTable.html?dataCode=2000011&projectId="+planId

						},{
							"code": "2000012",
							"name": "线路",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/getLineData.html?dataCode=2000012&projectId="+planId
						}]
					},
					{
						"code": "1020",
						"name": "运行模拟结果",
						"isLeaf": false,
						"draggable": false,
						"items": [{
							"code": "2000021",
							"name": "电源侧",
							"draggable": false,
							"isLeaf": false,
							"level": "2",
							"items": [{
								"code": "3000021",
								"name": "火电启停",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/Thermalpower.html?dataCode=3000021&projectId="+planId
							},{
								"code": "3000021",
								"name": "电源出力",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/powerOutput.html?dataCode=3000021&projectId="+planId
							},{
								"code": "3000022",
								"name": "可再生能源",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/renewableEnergy.html?dataCode=3000022&projectId="+planId
							}]
						},{
							"code": "2000022",
							"name": "储能侧",
							"draggable": false,
							"isLeaf": false,
							"level": "2",
							"items": [{
								"code": "3000023",
								"name": "容量状态变化",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/powerCapacity.html?dataCode=3000023&projectId="+planId
							},{
								"code": "3000024",
								"name": "充能",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/Charge.html?dataCode=3000024&projectId="+planId
							},{
								"code": "3000025",
								"name": "放能",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/releasingEnergy.html?dataCode=3000025&projectId="+planId
							}]
						},{
							"code": "2000023",
							"name": "负荷侧",
							"draggable": false,
							"isLeaf": false,
							"level": "2",
							"items": [{
								"code": "3000026",
								"name": "负荷曲线",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/loadDiagram.html?dataCode=3000026&projectId="+planId
							},{
								"code": "3000027",
								"name": "切负荷",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/powerCutIn.html?dataCode=3000027&projectId="+planId
							}]
						},{
							"code": "2000024",
							"name": "电网侧",
							"draggable": false,
							"isLeaf": false,
							"level": "2",
							"items": [{
								"code": "3000028",
								"name": "线路潮流",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "goptcloud/pages/linePower.html?dataCode=3000028&projectId="+planId
							}]
						},{
							"code": "2000025",
							"name": "系统工作位置图",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/workPosition.html?dataCode=3000028&projectId="+planId
						}]
					},
					{
						"code": "1030",
						"name": "仿真结果概览",
						"isLeaf": false,
						"draggable": false,
						"items": [{
							"code": "4000001",
							"name": "电源装机",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000001"
						},{
							"code": "4000002",
							"name": "线路投建状态",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000002"
						},{
							"code": "4000003",
							"name": "机组出力曲线",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000003"
						},{
							"code": "4000004",
							"name": "节点曲线",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000004"
						},{
							"code": "4000005",
							"name": "启停容量及成本",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000005"
						},{
							"code": "4000006",
							"name": "线路潮流",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000006"
						}]
					}]
			}];
		}

		function getTreeData10(planId){
			return [{
				"code": "11",
				"name": "结果概览",
				"draggable": false,
				"isLeaf": true,
				"level": "1",
				"items": [],
				"url": "goptcloud/pages/general1.html?dataCode=1101&projectId="+planId

			},{
				"code": "12",
				"name": "源网荷储运行特性分析",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "1201",
					"name": "负荷特性",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "120101",
						"name": "负荷曲线",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/loadCharact.html?dataCode=120101&projectId="+planId
					},
					{
						"code": "120102",
						"name": "负荷特性统计",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/loadCharact2.html?dataCode=120102&projectId="+planId
					}]
				},{
					"code": "1205",
					"name": "机组运行特性分析",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "120501",
						"name": "机组电力分析",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/unitUsageAnaly.html?dataCode=120501&projectId="+planId
					},{
						"code": "1205022",
						"name": "机组电量分析",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/unitUsageAnaly2.html?dataCode=120502&projectId="+planId
					},{
						"code": "120502",
						"name": "煤电开机容量",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/thermalPowerBootCap.html?dataCode=120503&projectId="+planId
					}]
				},{
					"code": "1202",
					"name": "新能源出力特性分析",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "120201",
						"name": "风电出力重构",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/windPowerReconstruct2.html?dataCode=120201&projectId="+planId
					},{
						"code": "120202",
						"name": "光伏出力重构",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/pvPowerReconstruct2.html?dataCode=120203&projectId="+planId
					},{
						"code": "120203",
						"name": "风电出力概率",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/windPowerReconstruct3.html?dataCode=120204&projectId="+planId
					},{
						"code": "120204",
						"name": "光伏出力概率",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/pvPowerReconstruct3.html?dataCode=120202&projectId="+planId
					}]
				},{
					"code": "1206",
					"name": "线路断面潮流分析",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "120601",
						"name": "线路潮流分析",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/lineAnalysis.html?dataCode=120601&projectId="+planId
					},{
						"code": "120602",
						"name": "断面潮流分析",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/sectionAnalysis.html?dataCode=120602&projectId="+planId
					},{
						"code": "120603",
						"name": "断面越限分析",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/sectionCrossTime.html?dataCode=120603&projectId="+planId
					},{
						"code": "120701",
						"name": "断面潮流概率",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/sectionTotalAnaly.html?dataCode=120701&projectId="+planId
					}]
				}]
			},{
				"code": "13",
				"name": "系统电力电量平衡分析",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "1301",
					"name": "电力平衡分析",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "120301",
						"name": "综合最大负荷",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/powerBalance2.html?dataCode=120301&projectId="+planId
					},{
						"code": "120302",
						"name": "电力盈余情况",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/powerBalance3.html?dataCode=120301&projectId="+planId
					},{
						"code": "120303",
						"name": "机组开机容量",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/powerBalance4.html?dataCode=120301&projectId="+planId
					},{
						"code": "120304",
						"name": "机组停机容量",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/powerBalance5.html?dataCode=120301&projectId="+planId
					},{
						"code": "120305",
						"name": "机组检修容量",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/powerBalance6.html?dataCode=120301&projectId="+planId
					},{
						"code": "120305",
						"name": "全时段备用率",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/qsdbyv.html?dataCode=120301&projectId="+planId
					} ],
				},{
					"code": "1302",
					"name": "电量平衡分析",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "120401",
						"name": "系统电量统计",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/electBalance2.html?dataCode=120401&projectId="+planId
					},{
						"code": "120402",
						"name": "电量盈余情况",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/electBalance3.html?dataCode=120401&projectId="+planId
					},{
						"code": "120403",
						"name": "弃电情况统计",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/electBalance4.html?dataCode=120401&projectId="+planId
					},{
						"code": "120404",
						"name": "电源利用情况",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/electBalance5.html?dataCode=120401&projectId="+planId
					},{
						"code": "120405",
						"name": "电量结构分析",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/electBalance6.html?dataCode=120401&projectId="+planId
					},],
				},{
					"code": "1207",
					"name": "系统运行与平衡分析",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "120503",
						"name": "系统工作位置图",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/sysWorkPosPic.html?dataCode=120503&projectId="+planId
					}, {
						"code": "1004703",
						"name": "电力平衡日详表",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow2.html?dataCode=1004703&projectId="+planId
					}, {
						"code": "1004704",
						"name": "电量平衡日详表",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow2.html?dataCode=1004704&projectId="+planId
					}]
				}]
			},{
				"code": "15",
				"name": "安全低碳经济分析",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "1101",
					"name": "系统可靠性分析",
					"draggable": false,
					"level": "2",
					"items": [/* {
						"code": "1004701",
						"name": "全时段备用率",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/fullTimeStandByRate.html?dataCode=120901&projectId="+planId
					}, */{
						"code": "1004701",
						"name": "系统可靠性指标",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow3.html?dataCode=10045&pageType=1&projectId="+planId
					},{
						"code": "1004701",
						"name": "电力备用率指标",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow3.html?dataCode=10045&pageType=2&projectId="+planId
					},{
						"code": "1004701",
						"name": "系统惯量分析",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=10045&projectId="+planId
					},],
				},{
					"code": "1102",
					"name": "新能源消纳分析",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "121101",
						"name": "可再生能源消纳分析",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/renewableAbsorb.html?dataCode=121101&projectId="+planId
					},{
						"code": "121101",
						"name": "新能源弃电情况",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/xnyqd.html?dataCode=121101&projectId="+planId
					}],
				},{
					"code": "1102",
					"name": "经济环保性分析",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "121101",
						"name": "环保指标统计",
						"draggable": false,
						"level": "3",
						"items": [{
							"code": "1004101",
							"name": "二氧化硫",
							"draggable": false,
							"isLeaf": true,
							"level": "4",
							"items": [],
							"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004101&projectId="+planId
						}, {
							"code": "1004102",
							"name": "二氧化碳",
							"draggable": false,
							"isLeaf": true,
							"level": "4",
							"items": [],
							"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004102&projectId="+planId
						}, {
							"code": "1004103",
							"name": "燃煤",
							"draggable": false,
							"isLeaf": true,
							"level": "4",
							"items": [],
							"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004103&projectId="+planId
						}, {
							"code": "1004104",
							"name": "烟尘",
							"draggable": false,
							"isLeaf": true,
							"level": "4",
							"items": [],
							"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004104&projectId="+planId
						}, {
							"code": "1004105",
							"name": "氮氧化合物",
							"draggable": false,
							"isLeaf": true,
							"level": "4",
							"items": [],
							"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004105&projectId="+planId
						}, {
							"code": "1004106",
							"name": "灰渣",
							"draggable": false,
							"isLeaf": true,
							"level": "4",
							"items": [],
							"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004106&projectId="+planId
						}, {
							"code": "1004107",
							"name": "碳氢化物",
							"draggable": false,
							"isLeaf": true,
							"level": "4",
							"items": [],
							"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004107&projectId="+planId
						}, {
							"code": "1004108",
							"name": "燃气",
							"draggable": false,
							"isLeaf": true,
							"level": "4",
							"items": [],
							"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004108&projectId="+planId
						}],
					},{
						"code": "100411",
						"name": "经济技术总指标",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=100411&projectId="+planId
					}],
				}]
			},{
				"code": "11",
				"name": "典型日分析模块",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "1101",
					"name": "典型日工作位置分析",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "goptcloud/pages/dataSourceSysWorkResult.html?dataCode=1101&projectId="+planId
				},{
					"code": "1102",
					"name": "典型日断面潮流",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "goptcloud/pages/dataSourceSectionCurrent.html?dataCode=1102&projectId="+planId
				}]
			},{
				"code": "10",
				"name": "查询、报表与统计",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "10001",
					"name": "仿真结果详表",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "1001",
						"name": "线路结果",
						"draggable": false,
						"isLeaf": true,
						"level": "2",
						"items": [],
						"url": "goptcloud/pages/dataSourceToLine.html?dataCode=1001&projectId="+planId
					}, {
						"code": "1002",
						"name": "断面结果",
						"draggable": false,
						"isLeaf": true,
						"level": "2",
						"items": [],
						"url": "goptcloud/pages/dataSourceToSection.html?dataCode=1002&projectId="+planId
					}, {
						"code": "1003",
						"name": "机组结果",
						"draggable": false,
						"isLeaf": true,
						"level": "2",
						"items": [],
						"url": "goptcloud/pages/dataSourceToCombin.html?dataCode=1003&projectId="+planId
					}, {
						"code": "1004701",
						"name": "电力平衡详表",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004701&projectId="+planId
					}, {
						"code": "10041002",
						"name": "静态费用详表",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=10041002&projectId="+planId
					}]
				},
				{
					"code": "10002",
					"name": "统计结果",
					"draggable": false,
					"level": "2",
					"items": [{
						"code": "1001",
						"name": "线路统计分析",
						"draggable": false,
						"isLeaf": true,
						"level": "2",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=10043&projectId="+planId
					}, {
						"code": "1002",
						"name": "断面统计分析",
						"draggable": false,
						"isLeaf": true,
						"level": "2",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=10044&projectId="+planId
					}, {
						"code": "1003",
						"name": "网损统计分析",
						"draggable": false,
						"isLeaf": true,
						"level": "2",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=10046&projectId="+planId
					}, {
						"code": "1004701",
						"name": "电力平衡统计表",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004702&projectId="+planId
					}, {
						"code": "10041002",
						"name": "电量平衡统计表",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004801&projectId="+planId
					}, {
						"code": "10041002",
						"name": "机组利用小时数",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004902&projectId="+planId
					}, {
						"code": "10041002",
						"name": "机组启停台次统计",
						"draggable": false,
						"isLeaf": true,
						"level": "4",
						"items": [],
						"url": "goptcloud/pages/dataSourceShow.html?dataCode=1004901&projectId="+planId
					}]
				}]
			}];
		};
		function getTreeData9(planId){
			return [{
				"code": "9",
				"name": "MEOP",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "1001",
					"name": "规划结果分析",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "PowerInfo/dactive/pages/preview.html?queryId=37&type=publish&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
				}, {
					"code": "1001",
					"name": "运行情况分析",
					"draggable": false,
					"isLeaf": false,
					"level": "2",
					"items": [{
						"code": "1001",
						"name": "端口潮流",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "PowerInfo/dactive/pages/preview.html?queryId=34&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
					},{
						"code": "1001",
						"name": "储能状态变化",
						"draggable": false,
						"isLeaf": true,
						"level": "3",
						"items": [],
						"url": "PowerInfo/dactive/pages/preview.html?queryId=35&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
					}],
				}]
			}];
		};
		
			function getTreeData8(planId){
			return [{
				"code": "8",
				"name": "可靠性分析",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "1001",
					"name": "系统可靠性",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "PowerInfo/dactive/pages/preview.html?queryId=23&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
				}, {
					"code": "1001",
					"name": "节点可靠性",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "PowerInfo/dactive/pages/preview.html?queryId=25&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
				},{
					"code": "1001",
					"name": "支路可靠性",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "PowerInfo/dactive/pages/preview.html?queryId=26&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
				},{
					"code": "1001",
					"name": "负荷可靠性",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "PowerInfo/dactive/pages/preview.html?queryId=27&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
				}]
			}];
		};
		function getTreeData7(planId){
			return [{
				"code": "7",
				"name": "结果导出",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "70010",
					"name": "导出Excel",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "goptcloud/pages/meosExportExcel.html?projectId="+planId+"&code=70010"
				}]
			}];
		}

		function getTreeData2(planId){
			return [{
				"code": "2",
				"name": "源网储一体化规划",
				"draggable": false,
				"level": "1",
				"items": [{
					"code": "10010",
					"name": "总体概览",
					"draggable": false,
					"isLeaf": true,
					"level": "2",
					"items": [],
					"url": "PowerInfo/dactive/pages/preview.html?queryId=866487287255400448&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
				}, {
					"code": "1010",
					"name": "规划结果",
					"draggable": false,
					"level": "2",
					"items": [{
							"code": "2000011",
							"name": "机组",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "PowerInfo/dactive/pages/preview.html?queryId=866671245020626944&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
						},{
							"code": "2000012",
							"name": "线路",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "PowerInfo/dactive/pages/preview.html?queryId=866677464846303232&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
						}]
					},
					{
						"code": "1020",
						"name": "运行模拟结果",
						"isLeaf": false,
						"draggable": false,
						"items": [{
							"code": "2000021",
							"name": "电源侧",
							"draggable": false,
							"isLeaf": false,
							"level": "2",
							"items": [{
								"code": "3000021",
								"name": "火电启停",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866678253681639424&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							},{
								"code": "3000021",
								"name": "电源出力",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866679038695964672&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							},{
								"code": "3000022",
								"name": "可再生能源",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866703716294590464&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							}]
						},{
							"code": "2000022",
							"name": "储能侧",
							"draggable": false,
							"isLeaf": false,
							"level": "2",
							"items": [{
								"code": "3000023",
								"name": "容量状态变化",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866723312707829760&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							},{
								"code": "3000024",
								"name": "充能",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866729697294155776&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							},{
								"code": "3000025",
								"name": "放能",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866737177852116992&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							}]
						},{
							"code": "2000023",
							"name": "负荷侧",
							"draggable": false,
							"isLeaf": false,
							"level": "2",
							"items": [{
								"code": "3000026",
								"name": "负荷曲线",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866739069701324800&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							},{
								"code": "3000027",
								"name": "切负荷",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866741577341468672&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							}]
						},{
							"code": "2000024",
							"name": "电网侧",
							"draggable": false,
							"isLeaf": false,
							"level": "2",
							"items": [{
								"code": "3000028",
								"name": "线路潮流",
								"draggable": false,
								"isLeaf": true,
								"level": "2",
								"items": [],
								"url": "PowerInfo/dactive/pages/preview.html?queryId=866748388056498176&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
							}]
						},{
							"code": "2000025",
							"name": "系统工作位置图",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "PowerInfo/dactive/pages/preview.html?queryId=866680498028544000&type=publish&params=[{paramName:%22A1_PROJECTID%22,value:["+planId+"]}]"
						}]
					},
					{
						"code": "1030",
						"name": "仿真结果概览",
						"isLeaf": false,
						"draggable": false,
						"items": [{
							"code": "4000001",
							"name": "电源装机",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000001"
						},{
							"code": "4000002",
							"name": "线路投建状态",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000002"
						},{
							"code": "4000003",
							"name": "机组出力曲线",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000003"
						},{
							"code": "4000004",
							"name": "节点曲线",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000004"
						},{
							"code": "4000005",
							"name": "启停容量及成本",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000005"
						},{
							"code": "4000006",
							"name": "线路潮流",
							"draggable": false,
							"isLeaf": true,
							"level": "2",
							"items": [],
							"url": "goptcloud/pages/resultTable.html?projectId="+planId+"&code=4000006"
						}]
					}]
			}];
		}
		function invoke_sys(url, args, callback){
			var r, op = {
					url: url,
					type:'POST',
					cache:false,
					async:true,
					dataType:'json',
					data:args ? JSON.stringify(args) : null,
					contentType:"application/json",
				};
			if(typeof callback == 'function'){
				op.success = function(data){
					if(data.error)return alert(data.error);
					callback(data);
				}
			} else {
				op.async = false;
				op.success = function(data){
					r = data
				};
			}
			$.ajax(op);
			if(r)if(r.error){
				alert(r.error);
				return null;
			}
			return r;
		};
	</script>
</head>
<body style="position:absolute;top:0px;left:0px;right:0px;bottom:0px;">
	<div id="tree"></div>
	<div id="iframe" style="position: absolute;top: 0px;left: 200px;right: 0px;height: 99%;display:none">
		<iframe  frameborder="0" width="100%" scrolling="No" height="100%" leftmargin="0" topmargin="0" id="sampleIframe"></iframe>
	</div>
	<form action='page/pageInfo/202' method='post' id='form2'>
		<input type="hidden" name="schemeid">
	</form>
</body>
</html>